require_relative '../set-db-properties'

describe "Set DB properties" do

  it "should update the content with the new ip, user and password" do
    setDB = SetDBProperties.new "filename", "ip", "user", "pass"
    setDB.file_content.should ==
        "connectionUrl=jdbc:jtds:sqlserver://10.81.10.232:1433/TeamCity\n" +
        "connectionProperties.user=TCAdmin\n" +
        "connectionProperties.password=Ult1Cloud"
  end
end